package org.senf.outerspace.ships.design;

import org.senf.outerspace.ships.build.Ship;


public class ShipBluePrint {

	private String name;
	private IModelBluePrint modelBluePrint;
	private IEngineBluePrint engineBluePrint;
	private IWeaponBluePrint weaponBluePrint;

	public Ship build() {
		Ship ship = new Ship();
		ship.setEngine(engineBluePrint.build());
		ship.setModel(modelBluePrint.build());
		ship.setWeapon(weaponBluePrint.build());
		return ship;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public IModelBluePrint getModelBluePrint() {
		return modelBluePrint;
	}

	public void setModelBluePrint(IModelBluePrint modelBluePrint) {
		this.modelBluePrint = modelBluePrint;
	}

	public IEngineBluePrint getEngineBluePrint() {
		return engineBluePrint;
	}

	public void setEngineBluePrint(IEngineBluePrint engineBluePrint) {
		this.engineBluePrint = engineBluePrint;
	}

	public IWeaponBluePrint getWeaponBluePrint() {
		return weaponBluePrint;
	}

	public void setWeaponBluePrint(IWeaponBluePrint weaponBluePrint) {
		this.weaponBluePrint = weaponBluePrint;
	}
}
